Binary Operators | ||
Symbol | Example | Explanation |
exponentiation | ||
multiplication | ||
division | ||
* modulo | ||
addition | ||
subtraction | ||
equality | ||
inequality | ||
* bitwise AND | ||
* bitwise exclusive OR | ||
* bitwise inclusive OR | ||
* logical AND | ||
* logical OR | ||
* ternary operation |
Logical AND (
The ternary operator evaluates its first argument (a). If it is true (non-zero) the second argument (b) is evaluated and returned, otherwise the third argument (c) is evaluated and returned.